//
//  YDSwitch.h
//  YunDongGym
//
//  Created by lqq on 2018/5/18.
//  Copyright © 2018年 lqq. All rights reserved.
//

#import <UIKit/UIKit.h>


@protocol YDSwitchDelegate <NSObject>
- (void)choiceIndex:(NSInteger)index;
@end


@interface YDSwitch : UIView
@property (nonatomic, strong) NSArray *titles;
@property (nonatomic, assign) NSInteger index;
@property (nonatomic, weak) id<YDSwitchDelegate> delegate;
@end
